//
//  ConsultModel2.m
//  110
//
//  Created by lanou on 16/4/11.
//  Copyright © 2016年 乔砥. All rights reserved.
//

#import "ConsultModel2.h"

@implementation ConsultModel2

+(NSMutableArray *)getData:(NSDictionary *)dic
{
    NSMutableArray *modelArray = [NSMutableArray array];
    NSMutableArray *itemsArray = dic[@"items"];
    for (NSDictionary *dic in itemsArray)
    {
        ConsultModel2 *model = [[ConsultModel2 alloc]init];
        [model setValuesForKeysWithDictionary:dic];
        [modelArray addObject:model];
        
    }
    
    return modelArray;
    
    
    
}



-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"])
    {
        [self setValue:value forKey:@"myId"];
    }
    
}


@end
